﻿using System;

namespace diantou.web.management
{
    /// <summary>
    /// 编辑勋章
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class medalEdit : adminView<medalEdit>
    {
        ///// <summary>
        ///// 勋章
        ///// </summary>
        //private string[] medalTypes
        //{
        //    get { return diantou.dataAccess.medal.MedalTypes; }
        //}
        ///// <summary>
        ///// 稀有度
        ///// </summary>
        //private string[] raritys
        //{
        //    get { return diantou.dataAccess.medal.Raritys; }
        //}

        /// <summary>
        /// 勋章
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.medal medal;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="medalId"></param>
        /// <returns></returns>
        private bool loadView(int medalId)
        {
            if (medalId == 0) medal = diantou.dataAccess.medal.NullMedal;
            else medal = diantou.dataAccess.clientCache.Medal[medalId];
            return medal != null;
        }
    }
}
